class Page13 extends BaseScreen {
    public constructor() {
        super();
        this.skinName = "resource/eui_skins/Page13Skin.exml";
    }

	private img_1: eui.Image;
    private img_2: eui.Image;
    private img_3: eui.Image;
    private img_4: eui.Image;
	private img_5: eui.Image;
	private img_6: eui.Image;


    protected childrenCreated(): void {
        super.childrenCreated();
        this.anchorOff(this.img_3);
        this.anchorOff(this.img_4);
        this.anchorOff(this.img_5);
        
        this.init_view();
        this.resetui();
    }

    public resetui(){
        this.img_1.alpha = 0;
        this.img_2.alpha = 0;

		this.img_3.scaleY = this.img_4.scaleY = this.img_5.scaleY = 0;
        this.img_3.scaleX = this.img_4.scaleX = this.img_5.scaleX = 0;

        if(this.xx_page){
            this.xx_page.stop();
        }
    }

    public init_view() {
        this.showPage();
    }

    public showPage() {
        super.showPage();
        this.resetui();

        egret.Tween.get(this.img_1).wait(200).to({ alpha:1}, 2000);
        egret.Tween.get(this.img_2).wait(200).to({ alpha:1}, 1000);

// egret.Ease.backOut
        egret.Tween.get(this.img_3).wait(600).to({scaleY:1,scaleX:1}, 400);
        egret.Tween.get(this.img_4).wait(600).to({scaleY:1,scaleX:1}, 400);
		egret.Tween.get(this.img_5).wait(600).to({scaleY:1,scaleX:1}, 400);

        if(this.xx_page){
            this.xx_page.start();
        }

    }

    public resize(): void {
         super.resize();
    }

	protected process(){
        
    }
}